/*
 * @Author: hyq
 * @LastEditors: hyq
 * @Description: storage
 * @Date: 2023-12-05 10:57:20
 */

/**
 * set
 * @param key
 * @param value
 */
export function setStorage(
  key: string,
  value: string | Record<string, string | number>
) {
  uni.setStorageSync(key, value)
}

/**
 * get
 * @param key
 * @returns
 */
export function getStorage(key: string) {
  return uni.getStorageSync(key)
}

/**
 * clear
 */
export function clearStorage() {
  uni.clearStorageSync()
}

/**
 * remove
 * @param key
 */
export function removeStorage(key: string) {
  uni.removeStorageSync(key)
}
